<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> 飛羽主題攝影 </title>
<link href="css/photo.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/btn.css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.js"></script>
<script type="text/javascript" src="js/slideshow.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$(".hoverNews , .hoverWorking , .hoverGown , .hoverCos , .hoverLogo , .hoverLogo2 , .hoverAbout , .hoverInfor, .hoverOnline , .hoverContact").css("opacity","0");
		$(".hoverNews , .hoverWorking , .hoverGown , .hoverCos , .hoverLogo , .hoverLogo2 , .hoverAbout , .hoverInfor, .hoverOnline , .hoverContact").hover(function () {
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		function () {
			$(this).stop().animate({
				opacity: 0
			}, "fast");
		});
		});
	</script>
</head>
<body >
<?php 
include_once('util.php');
include_once('conn.php');

$nid = $_REQUEST['nid'];
$title = make_safe($_REQUEST['title']);
$sql = sprintf("SELECT * FROM product2 where nid = %d AND title = '%s'", $nid, $title);
$result = mysql_query($sql);
$photo = mysql_fetch_assoc($result);
if ($photo == null) {
    Util::jsAlert('查找的相册不存在', 'gown.php');
}
?>
<div id="wrap"><!-- start #wrap //-->
<div id="main" class="clearfix"><!-- start #main //-->
<!-- start #top //-->
<?php 
include_once('top.php');
include_once('util.php');
include_once('conn.php');

$nid = $_REQUEST['nid'];
$title = make_safe($_REQUEST['title']);
$sql = sprintf("SELECT * FROM product2 where nid = %d AND title = '%s'", $nid, $title);
$result = mysql_query($sql);
$photo = mysql_fetch_assoc($result);
if ($photo == null) {
    Util::jsAlert('查找的相册不存在', 'gown.php');
}
?>
<!-- end #top //-->
<div id="all">
<div id="photo-tit">
<ul>
<li>SHOW ROOM</li>
<li>攝影作品</li>
<li><?php echo $photo['title']; ?></li>
    </ul>
  </div>
 <div id="photo-tit2">
    <ul>
     <li><a href="#"><img src="images/full.png" width="20" height="20" /></a></li>
    <li><a href="#"><img src="images/fb.png" width="20" height="20" /></a></li>
    </ul>
  </div>

<div class="photo-b"> 
    <a href="#">
        <img src="<?php echo $photo['images']; ?>" width="325" height="488" />
    </a>
</div>

<div id="photo-page2">
  <div class="photo-page2-1"> <a href="#"><img src="images/photo-control-prev.png" width="43" height="88" /></a></div>
  
  <div class="photo-page2-2">
  
<?php 
    $slider = array();
    for($i = 0; $i < 10; $i++) {
        if ($i == 0) { $i = ''; }
        $images = $photo['images'.$i];
        if ($images != '') {
            $slider[] = $images.'-68x68.jpg';
        }
    }
    foreach($slider as $key => $img) {
        if ($key % 2) {
            $width = 68;
            $height = 102;
        }else{
            $width = 102;
            $height = 68;
        }
    ?>
    <div class="photo-page2-2-bg">
   <div class="photo-page2-2-list">
   <img src="<?php echo $img; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" /></div>
   </div>
   <?php } ?>
  
  <div class="photo-page2-3"> <a href="#">
 <img src="images/photo-control-next.png" width="43" height="88" /></a>
  </div>
  
</div>

</div>

</div><!-- end #main //-->
</div><!-- end #wrap //-->

<?php include_once('down.php');?>
</body>
</html>
